<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
</head>
<body>
<h1>栏目列表</h1>
	<a href="?a=add&pid=0">添加顶级栏目</a>
	<table border="1" width="800">
		<tr>
			<td>id</td>
			<td>pid</td>
			<td>栏目名称</td>
			<td>操作</td>
		</tr>
		
		<?php foreach ($data as $d): ?>
			<tr>
				<td><?php echo $d['id'] ?></td>
				<td><?php echo $d['pid']?></td>
				<td><?php echo $d['_cname']?></td>
				<td><a href="?a=add&pid=<?php echo $d['id'];?>">添加子目录</a></td>
			</tr>
		<?php endforeach ?>
		
		
		
	</table>
</body>
</html>